
class Record {
    int beginTime;
    int endTime;

    Record({this.beginTime, this.endTime});

    factory Record.fromJson(Map<String, dynamic> json) {
        return Record(
            beginTime: json['beginTime'], 
            endTime: json['endTime']
        );
    }

//    Map<String, dynamic> toJson() {
//        final Map<String, dynamic> data = new Map<String, dynamic>();
//        data['beginTime'] = this.beginTime;
//        if (this.endTime != null) {
//            data['endTime'] = this.endTime.toJson();
//        }
//        return data;
//    }
}